//
//  SingerView.m
//  LastTemp
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SingerView.h"

@implementation SingerView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView{
    self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"9"]];
    // 显示图片
    self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake((self.frame.size.width - 75) / 2, 10, 75, 75)];
    [self addSubview:self.picImageView];
    self.picImageView.layer.cornerRadius = 30;
    self.picImageView.layer.masksToBounds = YES;
    [_picImageView release];
    // 显示名字
    self.singerNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 100, self.frame.size.width, 40)];
    self.singerNameLabel.textAlignment = NSTextAlignmentCenter;
    self.singerNameLabel.font = [UIFont systemFontOfSize:14];
    [self addSubview:self.singerNameLabel];
    [_singerNameLabel release];
    }
- (void)dealloc
{
    [_picImageView release];
    [_singerNameLabel release];
    [super dealloc];
}


@end
